package com.woniu.adopt;

import com.woniu.adopt.ExceptionHandler.BizException;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(value = "com.woniu.adopt.mapper")
@EnableSwagger2
@EnableTransactionManagement  //配置声明式事务
public class AdoptApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(AdoptApplication.class, args);
    }catch (RuntimeException e){
        e.printStackTrace();}
    }
}
